<?php

use doumiaoduo\layer\LayerConfirmWidget;
use doumiaoduo\layer\LayerIframeWidget;
use common\components\helpers\Fun;
use common\components\extenders\MenuManage;

use doumiaoduo\layer\LayerAsset;

LayerAsset::register($this);

LayerConfirmWidget::widget();
LayerIframeWidget::widget();
?>
<div class="yx-cnt-box yx-praise-content yx-radius2">
    <div class="yx-praise-box">
        <a href="javascript:history.go(-1);" class="btn yx-back-list yx-radius5 ">返回上级</a>
        <div class="yx-member-info">
            <h3 class="yx-pb15">学员基本信息:</h3>
            <div class="yx-member-info-box">
                <table class="yx-member-box yx-member-con">
                    <tr>
                        <td rowspan="3" class="yx-member-img-name">
                            <img src="<?= !empty($model->img) ? $model->img : '/images/images/noperson.png' ?>"
                                 class="yx-member-img">
                            <h3 class="yx-member-nickname"><?= $model->nickname ?></h3>
                        </td>
                        <td>姓名</td>
                        <td><?= $model->name ?></td>
                        <td>年龄</td>
                        <td><?php
                            $age = '';
                            if ($model->age > 0) {
                                $age = (int)date('Y') - $model->age;
                            }
                            echo $age;
                            ?>岁
                        </td>
                        <td>性别</td>
                        <td><?= $model->sex == 1 ? '男' : '女' ?></td>
                    </tr>
                    <tr>
                        <td>卡号</td>
                        <td><?= $model->card_number ?></td>
                        <td>身份证号</td>
                        <td><?= $model->IDcard ?></td>
                        <td>添加时间</td>
                        <td><?= date('Y-m-d H:i:s', $model->created_at) ?></td>
                    </tr>
                    <tr>
                        <td colspan="9" class="yx-member-info-operation">
                            <?= (new MenuManage(MenuManage::TOP_MENU))->detailsMenu('customer', 'card', false, ['rel' => 'dialog-show-iframe', 'class' => 'btn yx-classmagage-about yx-bg88abda yx-width80px yx-mr5 yx-mb0 yx-radius2', 'data' => ['id' => \Yii::$app->request->get('id'), 'name' => '开卡']], 'cus'); ?>
                            <?= (new MenuManage(MenuManage::TOP_MENU))->detailsMenu('customer', 'appointment', true, ['rel' => '', 'class' => 'btn yx-classmagage-about yx-bg7ecef4 yx-width80px yx-radius2 yx-mr5 yx-mb0', 'data' => ['id' => \Yii::$app->request->get('id'), 'name' => '约课']], 'cus'); ?>
                            <?= (new MenuManage(MenuManage::TOP_MENU))->detailsMenu('customer', 'chestcard', false, ['rel' => 'dialog-show-iframe', 'class' => 'btn yx-classmagage-about yx-bg6accbf yx-width80px yx-radius2 yx-mr5 yx-mb0', 'data' => ['id' => \Yii::$app->request->get('id'), 'name' => '打印胸牌', 'btn1' => '<span id="prints">打印</span>']], 'cus'); ?>
                        </td>
                    </tr>
                </table>
                <div class="yx-clear"></div>
            </div>
        </div>
        <div class="docs-main yx-member-info">
            <table class="tablesaw table yx-table1 yx-table3 yx-table5 table-striped with-check tablesaw-swipe"
                   data-tablesaw-mode="swipe" data-tablesaw-minimap="" id="table-963" style="">
                <thead>
                <tr class="yx-bgd2f6ec">
                    <th>课程名称</th>
                    <th>课程分类</th>
                    <th>机构</th>
                    <th>课程单价</th>
                    <th>现金</th>
                    <th>奖学金</th>
                    <th>已上/总课次</th>
                    <th>是否开班</th>
                    <th>状态</th>
                    <th class="yx-br">总计</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>张媛媛-少儿东方舞</td>
                    <td>课程</td>
                    <td>星梦舞蹈</td>
                    <td>480.00</td>
                    <td>480.00</td>
                    <td>480.00</td>
                    <td>0/6</td>
                    <td>未开课</td>
                    <td>正常</td>
                    <td>480.00</td>
                    <td>
                        <a class="btn yx-radius2 yx-d-card yx-bg94d5a2" rel="dialog-show-iframe" data-name="退课"
                           data-size="700*300" data-url="http://qdlcaks.doumiaoduo.cn/orders-refund?id=2064">退课</a>
                    </td>
                </tr>
                </tbody>
            </table>
            <p class="yx-floatr yx-color73bbef yx-font13">奖学金:480.00&nbsp;现金:0.00&nbsp;订单实付金额:480.00</p>
        </div>
    </div>


</div>